package one.stand.mapper;

import one.stand.entity.websocket.CommodityInfoEntity;
import one.stand.model.GoodSpecModel;

import java.util.List;

/**
 * @author Administrator
 */
public interface GoodSpecMapper {
    int delGoodSpec(Integer goodsId);

    int deleteByPrimaryKey(Integer specId);

    /**
     * 获取商品信息
     *
     * @param specId
     * @return
     */
    CommodityInfoEntity getSendMessage(Long specId);

    /**
     * 获取商品类型数
     *
     * @param record
     * @return
     */
    List<GoodSpecModel> getSpec(GoodSpecModel record);

    int insertSelective(GoodSpecModel record);

    GoodSpecModel selectByPrimaryKey(Integer specId);

    List<GoodSpecModel> selectGoodSpec(GoodSpecModel record);

    int updateByPrimaryKeySelective(GoodSpecModel record);

    int updateGoodSpecNum(GoodSpecModel record);

    int updateGoodsId(GoodSpecModel record);

    GoodSpecModel getSpecNumPrice(Integer specId);
}